﻿@model List<Blog.Core.Entities.Article>
@{
    ViewBag.Title = "Rss";
    Layout = null;
}
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Scaparel's blog</title>
<link>http://@Request.Url.Host</link>
<description>Blog RSS feed for scaparel.com</description>
<language>en-us</language>
 @foreach (var p in Model) {
    <item>
        <title> @p.Title </title>
        <link>http://@Request.Url.Host + Url.Action("View", "Articles", {id = p.Id}))</link>
        <guid>http://@Request.Url.Host + Url.Action("View", "Articles", {id = p.Id}))</guid>
        <pubDate>@p.Date.ToString()</pubDate>
        <description>@p.Content</description>
    </item>
 }
</channel>
</rss>

